
package com.zxb.base.cms.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zxb.base.system.vo.FileVo;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.sql.Timestamp;
import java.util.List;

/**
 * @author Zxb
 */
@Data
public class UpdateAnnVo {
    @NotNull(message = "公告ID不能为空")
    private Long id;
    @NotBlank(message = "标题不能为空")
    private String title;
    @NotBlank(message = "内容不能为空")
    private String content;
    @NotBlank(message = "发布者不能为空")
    private String author;
    private Boolean isTop;
    private Boolean isPublish;
    private Boolean isAll;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp stime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp etime;
    private List<FileVo> fileVoList;
}
